<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        #app .title {
            width: 100%;
            margin: 30px 10px;
            font-weight: bold;
            padding-left: 10px;
            box-sizing: border-box;
        }

        #app input {
            width: 100%;
            border: none;
            border-bottom: 1px solid #f5f5f5;
            outline: none;
            padding: 20px;
        }

        #app .btn {
            width: 300px;
            height: 30px;
            margin: auto;
            text-align: center;
            background: #f5f5f5;
            line-height: 30px;
            border-radius: 15px;
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="title">密码登录</div>
        <input type="text" placeholder="手机/用户名" v-model="name"><br>
        <input type="text" placeholder="密码" v-model="pass"><br>

        <div class="btn" @click="login">登录</div>
    </div>


    <script src="vue-2.5.21.js"></script>
    <script src="index-登录.js"></script>
</body>

</html>